package com.briup.ptt.util;

/**
 * @author 杰瑞
 * @date 2025/8/14
 */
public enum ResultCodeEnum {
    SUCCESS(200,"操作成功"),
    ERROR(500,"操作失败"), //2个枚举类的对象，内部创建的
    SEVER_ERROR(500,"服务器内部异常"); //2个枚举类的对象，内部创建的

    private Integer code;
    private String msg;

    ResultCodeEnum(Integer code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
